package com.sample.db40;

import org.rssowl.core.internal.persist.News;

import com.db4o.Db4o;
import com.db4o.ObjectContainer;
import com.db4o.ObjectSet;



// Version 1
public class BuildV2
{
    public static void main(String[] args)
        throws Exception
    {
        ObjectContainer db = null;
        try
        {
            db = Db4o.openFile("rssowl.db");
                    
            // Find all the Persons, and give them moods
            ObjectSet jobs = db.get(News.class);
                  
            while (jobs.hasNext())
            {
               
                News job =  (News) jobs.next();  
                         	                           	                      	
                System.out.print("--- " + job.getTitleAmit() + " ---\n");
                            
                          } 
            System.out.print("Done \n");
            
                              }
        finally
        {
            if (db != null)
                db.close(); 
        }
    }
}

